package com.ucap.weking.guangan.dialog;

import android.app.AlertDialog;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;

import com.ucap.weking.guangan.R;
import com.ucap.weking.guangan.base.BaseDialog;

/**
 * Created by weking on 2017/10/26.
 */

public class ShareDialog extends AlertDialog {

    protected ShareDialog(Context context) {
        super(context);
        inti();

    }

    protected ShareDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        inti();
    }

    protected ShareDialog(Context context, int themeResId) {
        super(context, themeResId);
        inti();
    }

    public static void showDialog(Context ctx) {
        ShareDialog dialog = new ShareDialog(ctx);
        dialog.show();
    }
    public void inti() {
        setView(LayoutInflater.from(getContext()).inflate(R.layout.dialog_shaer, null));
    }
}
